﻿using Microsoft.AspNetCore.Mvc.Controllers;
using System.Reflection;

namespace RuoVea.DynamicWebApi;

/// <summary>
/// 
/// </summary>
public class DynamicWebApiControllerFeatureProvider : ControllerFeatureProvider
{
    private ISelectController _selectController;
    /// <summary>
    /// 
    /// </summary>
    /// <param name="selectController"></param>
    public DynamicWebApiControllerFeatureProvider(ISelectController selectController)
    {
        _selectController = selectController;
    }

    protected override bool IsController(TypeInfo typeInfo)
    {
        return _selectController.IsController(typeInfo);
    }
}